﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CMWVS.Core.Mono
{
    internal class CreateMonoConfig:  ICreateMonoConfig 
    {
        #region Constructor 

        private CreateMonoConfig()
        {

        }

        public CreateMonoConfig(string directory)
        {
            m_Directory = directory;
        }

        #endregion

        private string m_Directory = string.Empty;

        #region ICreateMonoConfig Members

        public MonoConfig Create()
        {
            FileInfo comiler = new FileInfo( System.IO.Path.Combine(m_Directory, "lib\\mono\\4.5","xbuild.exe"));
            return new MonoConfig(true, comiler);
        }

        #endregion
    }
}
